from matplotlib import pyplot as plt
import numpy as np
import seaborn as sns

x=np.arange(1,20,2)
y_bar=[3,4,6,8,9,10,9,11,7,8]
y_line=[2,3,5,7,8,9,8,10,6,7]
contexts=['paper','notebook','talk','poster']
styles=['darkgrid','whitegrid','dark','white','ticks']
palettes=['deep','muted','bright','pastel','dark','colorblind']
colors=['r','y','b','g','b','w','p']
sns.set(context=np.random.choice(contexts),
        style=np.random.choice(styles),
        palette=np.random.choice(palettes),
        font='sans-serif',font_scale=1)
plt.bar(x,y_bar)
plt.plot(x,y_line,'-o',color='y')
plt.show()
